<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    var str='[{"id": 0, "name": "复兴之路党建文化长廊", "is_done": false, "is_using": false}, {"id": 1, "name": "党建长廊", "is_done": false, "is_using": false}]'
    var str3="[{\"id\": 0, \"name\": \"复兴之路党建文化长廊\", \"is_done\": false, \"is_using\": false}, {\"id\": 1, \"name\": \"党建长廊\", \"is_done\": false, \"is_using\": false}]"
    str2=JSON.parse(str)
    str3=JSON.parse(str3)
    console.log(str2);
    console.log(str2[1]);
    let arr=[1,2]
    // arr.map
    console.log(arr);
    console.log(str3);
    // foreach没有改变原数组
    arr=arr.map(i=>i+1)
    console.log(arr);
</script>
</html>